import { useState } from 'react'
import MyRoutes from './pages/Routes'
import {useRoutes} from 'react-router-dom'
import { GlobalStyle } from './style'

function App() {
  const element = useRoutes(MyRoutes)
  return (
    <div className="App">
      <GlobalStyle/>
      {element}
    </div>
  )
}

export default App
